package dao;

import java.util.List;

import vo.Source;

public interface SourceDAO extends GenericDao<Source, Long> {

	public List<Source> findAll();

	public List<Source> findByName(int start, int pageSize, String name);

	public List<Source> findByType(int start, int pageSize, String type);

	public List<Source> findByNameType(int start, int pageSize, String name, String type);

	public List<Source> findByCategoryId(long categoryId);

	public List<Source> findAll(int start, int pageSize);

	public long findTotalCount();

	public long findTotalCountByName(String name);

	public long findTotalCountByType(String type);

	public long findTotalCountByNameType(String name, String type);

	public Source getById(long id);

	public Source getByEntry(String entry);
	              
	public void update(long id);

	public void delete(long id);// 不是真是删除

}
